<h4 class="nodeFormCaption"><?php _e('Post Reply');?></h4>
<div class="nodeCommentForm">
<?php   foreach ($comment_form->getFormValidationErrors() as $error):?>
  <div class="stop">
    <p><?php _h($error);?></p>
  </div>
<?php   endforeach;?>
  <?php form_tag('post', Sabai_URL::get(sprintf('/comment/%d/reply', $comment_id)), array('id' => 'Xigg-CommentReplyForm' . $comment_id));?>
<?php   foreach ($comment_form->getElementNames() as $name):?>
  <p>
      <label><?php _h($comment_form->getElementLabel($name));?></label>
<?php     if ($name == 'content_syntax'):?>
      <?php $comment_form->printHTMLFor($name, array('id' => 'SubmitCommentForm-contentSyntax'));?>
      <input type="submit" name="change_syntax" value="<?php _e('Update');?>" class="button" />
<?php     else:?>
      <?php $comment_form->printHTMLFor($name);?>
<?php     endif;?>
  </p>
<?php     foreach ($comment_form->getValidationErrorsFor($name) as $error):?>
  <div class="stop">
    <p><?php _h($error);?></p>
  </div>
<?php     endforeach;?>
<?php   endforeach;?>
  <p>
    <input type="submit" name="preview_form" value="<?php _e('Preview');?>" class="button" />
    <input type="submit" name="submit_form" value="<?php _e('Send');?>" class="button" />
  </p>
  <?php form_tag_end();?>
</div>
<script type="text/javascript">
$('Xigg-CommentReplyForm<?php echo $comment_id;?>').getElementsByTagName('textarea')[0].focus();
if ($('Xigg-CommentReplyForm<?php echo $comment_id;?>').getElementsByTagName('textarea')[0].createTextRange) {
  var range = $('Xigg-CommentReplyForm<?php echo $comment_id;?>').getElementsByTagName('textarea')[0].createTextRange();
  range.move('character', 0);
  range.select();
} else if ($('Xigg-CommentReplyForm<?php echo $comment_id;?>').getElementsByTagName('textarea')[0].setSelectionRange) {
  $('Xigg-CommentReplyForm<?php echo $comment_id;?>').getElementsByTagName('textarea')[0].setSelectionRange(0, 0);
}
</script>